Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text.source
Interface ITagHandlerFactory

All Known Implementing Classes:
TagHandlerFactory

public interface ITagHandlerFactory

A tag handler factory provides access to tag handlers.

XXX: This is work in progress and can change anytime until API for 3.0 is frozen.

Since:
3.0

Method Summary
 ITagHandler findHandler(String text)
          Finds and returns a handler that can handle the given text snippet.
 ITagHandler getHandler(String tag)
          Returns a handler that can handle the given tag.
 

Method Detail

getHandler

public ITagHandler getHandler(String tag)
Returns a handler that can handle the given tag.

Depending on the used handler the factory might return a new or a shared instance.

Parameters:
tag - the tag for which to return the handler
Returns:
a tag handler or null if no handler is available

findHandler

public ITagHandler findHandler(String text)
Finds and returns a handler that can handle the given text snippet.

Depending on the used handler the factory might return a new or a shared instance.

Parameters:
text - the text for which to find a handler
Returns:
a tag handler or null if no handler is available

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.